package com.sunrate.investingquote.service.router.comparator.test.compare.v1;

import com.sunrate.investingquote.bean.router.ChannelPriorityConfig;
import com.sunrate.investingquote.bean.router.ChannelRouter;
import com.sunrate.investingquote.dto.router.comparator.RouterSortContext;

import java.util.Comparator;
import java.util.List;

/**
 * @author yyh
 * @description:
 * @date 2023/07/04/ 11:47
 */

public class ChainParam {

    private List<ChannelPriorityConfig> configs;

    private Comparator<RouterSortContext<ChannelRouter>> comparator;


    public ChainParam() {
        this.comparator = Comparator.comparing(demo -> 1);
    }

    public List<ChannelPriorityConfig> getConfigs() {
        return configs;
    }

    public void setConfigs(List<ChannelPriorityConfig> configs) {
        this.configs = configs;
    }

    public Comparator<RouterSortContext<ChannelRouter>> getComparator() {
        return comparator;
    }

    public void setComparator(Comparator<RouterSortContext<ChannelRouter>> comparator) {
        this.comparator = comparator;
    }
}
